package com.tfy.liquor.service;

import com.tfy.liquor.bean.RolloverRecords;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;

import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;

@Service
public interface RolloverRecordsService {

    /**
     * 添加礼包转购物券记录
     * @param workbook
     * @return
     */
    Boolean addRolloverRecords(Workbook workbook);

    /**
     * 全文检索数据
     * @param model
     * @param pageNum
     * @param pageSize
     * @param value
     * @param userId
     * @param cap
     * @param date
     * @return
     */
    Model getInfo(Model model, Integer pageNum, Integer pageSize, String value, String userId, String cap, String date);

    /**
     * 根据id查询数据
     * @param userId
     * @return
     */
    ArrayList<RolloverRecords> getRolloverRecordsByUserId(String userId);

    /**
     * 根据日期查询数据
     * @param date
     * @return
     */
    ArrayList<RolloverRecords> getOrderByDate(String date);

    /**
     * 导出数据
     * @param response
     * @param value
     * @param userId
     * @param cap
     * @param date
     */
    void ExportRolloverRecordsExcel(HttpServletResponse response, String value, String userId, String cap, String date);

}
